package com.threeti.mecool.core.domain.model.plan.aspects;

import javax.persistence.*;

import org.springframework.beans.factory.annotation.Configurable;
import com.threeti.mecool.core.domain.model.plan.pojo.Job;
import com.threeti.mecool.core.domain.model.plan.pojo.Step;
import com.threeti.mecool.core.domain.model.plan.pojo.Task;

/**
 * <p/>
 * zhaoxu @ 2012-05-22 12:15
 * <p/>
 */
privileged aspect Step_AJ_Entity {
	declare @type: Step:@Configurable;
	declare @type: Step:@Entity;
  declare @type: Step:@Table(name = "DM_WF_STEP");
	
	declare @field: Long Step.id:@Id;
	declare @field: Long Step.id:@GeneratedValue(strategy = GenerationType.AUTO);
	declare @field: Integer Step.version:@Version;
	
	declare @field: Job Step.job:@ManyToOne(optional = false);
	declare @field: Task Step.task:@ManyToOne;
	declare @field: Step Step.nextStep:@OneToOne;
}
